package com.service.impl;

import com.bean.Goods;
import com.dao.GoodsDao;
import com.dao.impl.GoodsDaoImpl;
import com.service.GoodsService;

import java.util.List;
import java.util.Map;

public class GoodsServiceImpl implements GoodsService {
    GoodsDao goodsDao = new GoodsDaoImpl();
    @Override
    public List<Goods> seAll() {
        return goodsDao.seAll();
    }

    @Override
    public boolean add(Goods good) {
        return goodsDao.add(good);
    }

    @Override
    public boolean del(int gid) {
        return goodsDao.del(gid);
    }

    @Override
    public List<Goods> seByOther(Map<String, Object> other) {
        return goodsDao.seByOther(other);
    }

    @Override
    public boolean upGood(Goods goods) {
        return goodsDao.upGood(goods);
    }

    @Override
    public boolean delAll(String[] gids) {
        return goodsDao.delAll(gids);
    }
}
